/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.commodity.repository;

import java.util.List;

import javax.persistence.criteria.CriteriaBuilder.In;

import iaas.repository.BaseRepository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.commodity.entity.Search;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Repository
public interface SearchDao extends BaseRepository<Search, Long> ,JpaSpecificationExecutor<Search>{

	//根据市场查询热搜词
	public List<Search> findByMarketId(Long marketId);
	
	public List<Search> findByStatusAndType(Integer status,Integer type);
}
